using UnityEngine;

public class IgnoreWater : MonoBehaviour
{
	public bool ignore;

	public static IgnoreWater instance
	{
		get;
		private set;
	}

	private void Awake()
	{
		if (instance != null && instance != this)
		{
			UnityEngine.Object.Destroy(base.gameObject);
		}
		instance = this;
	}

	private void OnTriggerEnter(Collider other)
	{
		if (other.tag == "Player")
		{
			ignore = true;
		}
	}

	private void OnTriggerExit(Collider other)
	{
		if (other.tag == "Player")
		{
			ignore = false;
        }
	}
}
